GXLockTag
You can use theGXLockTag
function to load a tag object into QuickDraw GX memory and lock its contents into a fixed memory location.
void GXLockTag(gxTag target);
target
- A reference to the tag object to be loaded and locked.
DESCRIPTION
TheGXLockTag
function prevents a tag object from being relocated. To directly edit a tag's contents, you must first callGXLockTag
. You can then callGXGetTagStructure
and edit the tag's contents. After editing, you must callGXUnlockTag
to release the tag for relocation.SPECIAL CONSIDERATIONS
To avoid fragmenting the QuickDraw GX heap, you should call theGXUnlockTag
function as soon as possible after callingGXLockTag
.You can nest calls to these direct-access routines, but be sure to call
GXUnlockTag
as many times as you callGXLockTag
. Version 1.0 of QuickDraw GX prohibits more than 255 nested calls toGXLockTag
.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory tag_is_nil SEE ALSO
TheGXUnlockTag
function is described in the next section. TheGXGetTagStructure
function is described on page 8-23.